package com.song.druid.constant;

public class DateRegex {
    public final static String YEAR = "([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]|[0-9][1-9][0-9]{2}|[1-9][0-9]{3})";
    public final static String MONTH = "(0[1-9]|1[0-2])";
    public final static String DAY = "(0[1-9]|[12][0-9]|3[01])";
    public final static String HOUR = "([0-1][0-9]|2[0-4])";
    public final static String MINUTE = "[0-5][0-9]";
    public final static String SECOND = "[0-5][0-9]";

    public final static String DEFAULT_PATTERN = YEAR + "-" + MONTH + "-" + DAY + " " + HOUR + ":" + MINUTE + ":" + SECOND;
    public final static String DEFAULT_SHORT_PATTERN = YEAR + "-" + MONTH + "-" + DAY;
    public final static String NULL_PATTERN = YEAR + MONTH + DAY + HOUR + MINUTE + SECOND;
}
